

/**
 * @Author DengJia
 * @Date 2021/8/9 22:29
 * @Description
 */

public class ForeachDemo {
    public static void main(String[] args) {
        String str = "jiayoudengjia!!";
        char[] chars = str.toCharArray();
        for (char aChar : chars) {
            System.out.print(aChar + " ");
        }
        System.out.println();

        System.out.println(hello());
        System.out.println(testReturn(100, 1));

        for (; ; ) {
            System.out.println("小罗！！");
        }
    }

    static int hello() {
        return -+-+-+-+-1;
    }

    static int testReturn(int i, int j) {
        if (i < j)
            return -1;
        else if (i == j)
            return 0;
        return 1;
    }

    static boolean beginAndEnd(int num1, int begin, int end) {
        return num1 >= begin && num1 <= end;
    }
}
